Termination Proof Script
Consider the TRS R consisting of the rewrite rules
|
1: |
|
not(true) |
→ false |
2: |
|
not(false) |
→ true |
3: |
|
odd(0) |
→ false |
4: |
|
odd(s(x)) |
→ not(odd(x)) |
5: |
|
x + 0 |
→ x |
6: |
|
x + s(y) |
→ s(x + y) |
7: |
|
s(x) + y |
→ s(x + y) |
|
There are 4 dependency pairs:
|
8: |
|
ODD(s(x)) |
→ NOT(odd(x)) |
9: |
|
ODD(s(x)) |
→ ODD(x) |
10: |
|
x +# s(y) |
→ x +# y |
11: |
|
s(x) +# y |
→ x +# y |
|
The approximated dependency graph contains 2 SCCs:
{10,11}
and {9}.
-
Consider the SCC {10,11}.
There are no usable rules.
By taking the AF π with
π(+#) = 1 together with
the lexicographic path order with
empty precedence,
rule 10
is weakly decreasing and
rule 11
is strictly decreasing.
There is one new SCC.
-
Consider the SCC {10}.
By taking the AF π with
π(+#) = 2 together with
the lexicographic path order with
empty precedence,
rule 10
is strictly decreasing.
-
Consider the SCC {9}.
There are no usable rules.
By taking the AF π with
π(ODD) = 1 together with
the lexicographic path order with
empty precedence,
rule 9
is strictly decreasing.
Hence the TRS is terminating.
Tyrolean Termination Tool (0.01 seconds)
--- May 4, 2006